import React, { memo } from 'react'
import { renderRoutes } from 'react-router-config'

import AppHeader from './components/AppHeader'
import AppFooter from './components/AppFooter'
import routes from './router'

const App = memo(() => {
  return (
    <div>
      <AppHeader></AppHeader>
      {renderRoutes(routes)}
      <AppFooter></AppFooter>
    </div>
  )
})

export default App
